﻿using CastingWellEquipmentGUI.Model;
using CastingWellEquipmentGUI.Utils;
using CastingWellEquipmentGUI.ViewModel.Common.LogTool;
using CastingWellEquipmentGUI.ViewModel.Pages;
using HslCommunication;
using HslCommunication.Profinet.Siemens;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;


namespace CastingWellEquipmentGUI.View.Pages
{
    /// <summary>
    /// EquipmentOverviewPage.xaml 的交互逻辑
    /// </summary>
    public partial class EquipmentOverviewPage : Page
    {
        public static EquipmentOverviewPage instance;

        public static EquipmentOverviewPage Instance
        {
            get
            {
                if (instance == null)
                {
                    Console.WriteLine("new Page1.................");
                    instance = new EquipmentOverviewPage();
                }
                return instance;
            }
        }
       
        /// <summary>
        /// 本页面所有标签
        /// </summary>
        private ObservableCollection<Model.Control> controls = new ObservableCollection<Model.Control>();

        public EquipmentOverviewPage()
        {
            InitializeComponent();
            XyhUtils.PermissionControl(this, System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name);
        }

       

    }
}
